package com.xmuexp109.exp5.model;

import java.util.Date;
import java.util.List;

/**
 * 订单明细
 **/
public class orders implements VoObject{
    /**
     * 代理对象
     */
    private ordersPo ordersPo;
    /**
     * 构造函数
     */
    public orders() {
        this.ordersPo = new ordersPo();
    }
    /**
     * 构造函数
     */
    public orders(ordersPo ordersPo) {
        this.ordersPo = ordersPo;
    }
    /**
     * 由orders对象创建Vo对象
     */
    @Override
    public Object createVo(){
        return new ordersRetVo(this);
    }
    /**
     * 设置内部的orderItemList
     */
    private List<orderItem> orderItemList;

    public List<orderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<orderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    /**
     * 获得内部的代理对象
     * @return GoodsPo对象
     */
    public ordersPo gotordersPo(){
        return this.ordersPo;
    }
    /**
     * get方法，用于RetVo视图层
     */
    public Long getId() {
        return ordersPo.getId();
    }
    public String getOrdersn() {
        return ordersPo.getOrderSn();
    }

    public Long getPid() {
        return ordersPo.getPid();
    }

    public Byte getOrderType() {
        return ordersPo.getOrderType();
    }

    public Byte getState() {
        return ordersPo.getState();
    }

    public Byte getSubstate() {
        return ordersPo.getSubstate();
    }

    public Date getGmtCreate() {
        return ordersPo.getGmtCreate();
    }

    public Date getGmetModified() {
        return ordersPo.getGmtModified();
    }

    public Date getConfirmTime() {
        return ordersPo.getConfirmTime();
    }

    public Long getOriginPrice() {
        return ordersPo.getOriginPrice();
    }

    public Long getDiscountPrice() {
        return ordersPo.getDiscountPrice();
    }

    public Long getFreightPrice() {
        return ordersPo.getFreightPrice();
    }

    public Integer getRebateNum() {
        return ordersPo.getRebateNum();
    }

    public String getMessage() {
        return ordersPo.getMessage();
    }

    public Long getRegionId() {
        return ordersPo.getRegionId();
    }

    public String getAdress() {
        return ordersPo.getAddress();
    }

    public String getMobile() {
        return ordersPo.getMobile();
    }

    public String getConsignee() {
        return ordersPo.getConsignee();
    }

    public Long getCouponId() {
        return ordersPo.getCouponId();
    }

    public Long getGrouponId() {
        return ordersPo.getGrouponId();
    }

    public Long getPresaleId() {
        return ordersPo.getPresaleId();
    }

    public String getShipmentSn() {
        return ordersPo.getShipmentSn();
    }

    /**
     * set方法，用于Vo视图层
     */
    public void setConsignee(String consignee) {
        ordersPo.setConsignee(consignee);
    }
    public void setRegionId(Long regionId) {
        ordersPo.setRegionId(regionId);
    }
    public void setAddress(String address) {
        ordersPo.setAddress(address);
    }
    public void setMobile(String mobile) {
        ordersPo.setMobile(mobile);
    }
    public void setMessage(String message) {
        ordersPo.setMessage(message);
    }
    public void setCouponId(Long couponId) {
        ordersPo.setCouponId(couponId);
    }
    public void setPresaleId(Long presaleId) {
        ordersPo.setPresaleId(presaleId);
    }
    public void setGroupOnId(Long grouponId) {
        ordersPo.setGrouponId(grouponId);
    }
}
